home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 36 / Issue 36.iso / pc / iwks / Wap / NokiaToolkit2_0 / setup.exe / Disk1 / data1.cab / Sample_Files / deck3.wml < prev    next >
Encoding:
Extensible Markup Language  |  2000-06-19  |  1.5 KB  |  64 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
  3.  
  4. <wml>
  5.  
  6.     <card id="card1" title="Country" newcontext="true">
  7.     <p>
  8.  
  9.         Select a country:
  10.         <select name="country_name" tabindex="2">
  11.  
  12.             <optgroup title="Scandanavia">
  13.                 <option value="Denmark">Denmark</option>
  14.                 <option value="Finland">Finland</option>
  15.                 <option value="Norway">Norway</option>
  16.                 <option value="Sweden">Sweden</option>
  17.             </optgroup>
  18.  
  19.             <optgroup title="Europe">
  20.                 <option value="France">France</option>
  21.                 <option value="Germany">Germany</option>
  22.                 <option value="Italy">Italy</option>
  23.                 <option value="Spain">Spain</option>
  24.             </optgroup>
  25.  
  26.         </select>
  27.  
  28.         <br/>The capital of<br/>
  29.         $(country_name)<br/>
  30.         is: <u>$(capital)</u><br/>
  31.  
  32.         <!-- Send: the country symbol; a variable for the country; and
  33.              and a variable for the capital name to a WML 
  34.              Script.  The script will determine the capital for the 
  35.              specified country and store the capital in the "$capital" 
  36.              variable.  
  37.         -->
  38.         
  39.         <do type="accept" label="Find Capital">
  40.             <go href="getCapital.wmls#getCapital('capital','$(country_name)')"/>
  41.         </do>
  42.  
  43.         <do type="help" label="Help">
  44.             <go href="#helpCard"/>
  45.         </do>
  46.  
  47.     </p>
  48.     </card>
  49.  
  50.     <card id="helpCard" title="Help">
  51.         <do type="prev" label="Back"> 
  52.             <prev/> 
  53.         </do> 
  54.  
  55.     <p>
  56.  
  57.         Select the name of a country and its
  58.         capital will be found.
  59.     
  60.     </p>
  61.     </card>
  62.  
  63. </wml>
  64.